package ren.xuedao.dao;

import ren.xuedao.entity.SuccessKilled;

public interface SuccessKilledDao {
    /**
     * 插入购买明细，可过滤重复
     * @param seckillId
     * @param userPhone
     * @return 插入的行数
     */
    int insertSuccessKilled(Long seckillId,Long userPhone);

    /**
     * 查询SuccessKilled并携带Seckill
     * @param seckillId
     * @return
     */
    SuccessKilled queryByIdWithSeckill(Long seckillId,Long userPhone);
}
